﻿using System;
using System.Linq;


namespace _4.IsTheThirdDigitSeven
{
    class IsTheThirdDigitSeven
    {
        static void Main(string[] args)
        {
            int number = 123456689;
            int firstNum = number / 10;
            int secondNum = firstNum / 10;
            bool isSeven= (secondNum % 10 == 7);
            if (isSeven)
            {
            }
            else
            { 
            }
            Console.WriteLine("The third number is 7 (seven): " + isSeven);
        }
    }
}
